package ksj.common;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.persistence.*;


@Controller
@RequestMapping(path="/conf")
@EntityScan(basePackages={"bean"}) 
public class ConfController {
	private Logger logger = LoggerFactory.getLogger(this.getClass());
	
	@GetMapping(path="/test")
	public @ResponseBody String getSilosByHub(@PathVariable String hub) {
		System.out.print("test");
		System.out.print("end");
		return "tracy";
	}
	
	@RequestMapping(path="/")
    public String hello(){
      return"Hello world!";
    }
	
}


